home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / Script.p < prev    next >
Text File  |  1996-05-01  |  40KB  |  920 lines

  1. {
  2.      File:        Script.p
  3.  
  4.      Contains:    Script Manager interfaces
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Script;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __SCRIPT__}
  28. {$SETC __SCRIPT__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ScriptIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __QUICKDRAW__}
  38. {$I Quickdraw.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __INTLRESOURCES__}
  41. {$I IntlResources.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __EVENTS__}
  44. {$I Events.p}
  45. {$ENDC}
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51.  
  52. CONST
  53.                                                                 {  Script System constants  }
  54.     smSystemScript                = -1;                            { designates system script. }
  55.     smCurrentScript                = -2;                            { designates current font script. }
  56.     smAllScripts                = -3;                            { designates any script     }
  57.     smRoman                        = 0;                            { Roman }
  58.     smJapanese                    = 1;                            { Japanese }
  59.     smTradChinese                = 2;                            { Traditional Chinese }
  60.     smKorean                    = 3;                            { Korean }
  61.     smArabic                    = 4;                            { Arabic }
  62.     smHebrew                    = 5;                            { Hebrew }
  63.     smGreek                        = 6;                            { Greek }
  64.     smCyrillic                    = 7;                            { Cyrillic }
  65.     smRSymbol                    = 8;                            { Right-left symbol }
  66.     smDevanagari                = 9;                            { Devanagari }
  67.     smGurmukhi                    = 10;                            { Gurmukhi }
  68.     smGujarati                    = 11;                            { Gujarati }
  69.     smOriya                        = 12;                            { Oriya }
  70.     smBengali                    = 13;                            { Bengali }
  71.     smTamil                        = 14;                            { Tamil }
  72.     smTelugu                    = 15;                            { Telugu }
  73.     smKannada                    = 16;                            { Kannada/Kanarese }
  74.     smMalayalam                    = 17;                            { Malayalam }
  75.  
  76.     smSinhalese                    = 18;                            { Sinhalese }
  77.     smBurmese                    = 19;                            { Burmese }
  78.     smKhmer                        = 20;                            { Khmer/Cambodian }
  79.     smThai                        = 21;                            { Thai }
  80.     smLaotian                    = 22;                            { Laotian }
  81.     smGeorgian                    = 23;                            { Georgian }
  82.     smArmenian                    = 24;                            { Armenian }
  83.     smSimpChinese                = 25;                            { Simplified Chinese }
  84.     smTibetan                    = 26;                            { Tibetan }
  85.     smMongolian                    = 27;                            { Mongolian }
  86.     smGeez                        = 28;                            { Geez/Ethiopic }
  87.     smEthiopic                    = 28;                            { Synonym for smGeez }
  88.     smEastEurRoman                = 29;                            { Synonym for smSlavic }
  89.     smCentralEuroRoman            = 29;                            {  another synonym  }
  90.     smVietnamese                = 30;                            { Vietnamese }
  91.     smExtArabic                    = 31;                            { extended Arabic }
  92.     smUninterp                    = 32;                            { uninterpreted symbols, e.g. palette symbols }
  93.     smKlingon                    = 32;                            { Klingon }
  94.                                                                 { Obsolete names for script systems (kept for backward compatibility) }
  95.     smChinese                    = 2;                            { (use smTradChinese or smSimpChinese) }
  96.     smRussian                    = 7;                            { (old name for smCyrillic) }
  97.                                                                 {  smMaldivian = 25;         (no more smMaldivian!) }
  98.     smAmharic                    = 28;                            { (old name for smGeez) }
  99.     smSlavic                    = 29;                            { (old name for smEastEurRoman) }
  100.  
  101.     smSindhi                    = 31;                            { (old name for smExtArabic) }
  102.                                                                 {  Language Codes  }
  103.     langEnglish                    = 0;                            {  smRoman script  }
  104.     langFrench                    = 1;                            {  smRoman script  }
  105.     langGerman                    = 2;                            {  smRoman script  }
  106.     langItalian                    = 3;                            {  smRoman script  }
  107.     langDutch                    = 4;                            {  smRoman script  }
  108.     langSwedish                    = 5;                            {  smRoman script  }
  109.     langSpanish                    = 6;                            {  smRoman script  }
  110.     langDanish                    = 7;                            {  smRoman script  }
  111.     langPortuguese                = 8;                            {  smRoman script  }
  112.     langNorwegian                = 9;                            {  smRoman script  }
  113.     langHebrew                    = 10;                            {  smHebrew script  }
  114.     langJapanese                = 11;                            {  smJapanese script  }
  115.     langArabic                    = 12;                            {  smArabic script  }
  116.     langFinnish                    = 13;                            {  smRoman script  }
  117.     langGreek                    = 14;                            {  should be smGreek script; current systems actually use smRoman (11/95)  }
  118.     langIcelandic                = 15;                            {  variant smRoman script  }
  119.     langMaltese                    = 16;                            {  variant smRoman script  }
  120.     langTurkish                    = 17;                            {  variant smRoman script  }
  121.     langCroatian                = 18;                            {  Serbo-Croatian in variant Roman script  }
  122.     langTradChinese                = 19;                            {  Chinese in traditional characters  }
  123.  
  124.     langUrdu                    = 20;                            {  smArabic script  }
  125.     langHindi                    = 21;                            {  smDevanagari script  }
  126.     langThai                    = 22;                            {  smThai script  }
  127.     langKorean                    = 23;                            {  smKorean script  }
  128.     langLithuanian                = 24;                            {  smCentralEuroRoman script  }
  129.     langPolish                    = 25;                            {  smCentralEuroRoman script  }
  130.     langHungarian                = 26;                            {  smCentralEuroRoman script  }
  131.     langEstonian                = 27;                            {  smCentralEuroRoman script  }
  132.     langLettish                    = 28;                            {  smCentralEuroRoman script  }
  133.     langLatvian                    = 28;                            {  Synonym for langLettish  }
  134.     langSaamisk                    = 29;                            {  lang. of the Sami/Lapp people of Scand. (11/95, no current script supports this)  }
  135.     langFaeroese                = 30;                            {  smRoman script  }
  136.     langFarsi                    = 31;                            {  smArabic script  }
  137.     langPersian                    = 31;                            {  Synonym for langFarsi  }
  138.     langRussian                    = 32;                            {  smCyrillic script  }
  139.     langSimpChinese                = 33;                            {  Chinese in simplified characters  }
  140.     langFlemish                    = 34;                            {  smRoman script  }
  141.     langIrish                    = 35;                            {  smRoman script  }
  142.     langAlbanian                = 36;                            {  smRoman script  }
  143.  
  144.     langRomanian                = 37;                            {  variant smRoman script (11/95) <22>  }
  145.     langCzech                    = 38;                            {  smCentralEuroRoman script  }
  146.     langSlovak                    = 39;                            {  smCentralEuroRoman script  }
  147.     langSlovenian                = 40;                            {  uses Croatian variant of smRoman script (11/95) <22>  }
  148.     langYiddish                    = 41;                            {  smHebrew script  }
  149.     langSerbian                    = 42;                            {  Serbo-Croatian in smCyrillic script  }
  150.     langMacedonian                = 43;                            {  smCyrillic script  }
  151.     langBulgarian                = 44;                            {  variant smCyrillic script (11/95) <22>  }
  152.     langUkrainian                = 45;                            {  variant smCyrillic script (11/95) <22>  }
  153.     langByelorussian            = 46;                            {  smCyrillic script  }
  154.     langUzbek                    = 47;                            {  variant smCyrillic script (11/95) <22>  }
  155.     langKazakh                    = 48;                            {  variant smCyrillic script (11/95) <22>  }
  156.     langAzerbaijani                = 49;                            {  Azerbaijani in variant smCyrillic script (11/95) <22>  }
  157.     langAzerbaijanAr            = 50;                            {  Azerbaijani in smArabic script (Iran)  }
  158.     langArmenian                = 51;                            {  smArmenian script  }
  159.     langGeorgian                = 52;                            {  smGeorgian script  }
  160.     langMoldavian                = 53;                            {  smCyrillic script  }
  161.     langKirghiz                    = 54;                            {  variant smCyrillic script (11/95) <22>  }
  162.     langTajiki                    = 55;                            {  variant smCyrillic script (11/95) <22>  }
  163.     langTurkmen                    = 56;                            {  variant smCyrillic script (11/95) <22>  }
  164.  
  165.     langMongolian                = 57;                            {  Mongolian in smMongolian script  }
  166.     langMongolianCyr            = 58;                            {  Mongolian in variant smCyrillic script (11/95) <22>  }
  167.     langPashto                    = 59;                            {  smExtArabic script (11/95) <22>  }
  168.     langKurdish                    = 60;                            {  smArabic script  }
  169.     langKashmiri                = 61;                            {  smExtArabic script (11/95) <22>  }
  170.     langSindhi                    = 62;                            {  smExtArabic script (11/95) <22>  }
  171.     langTibetan                    = 63;                            {  smTibetan script  }
  172.     langNepali                    = 64;                            {  smDevanagari script  }
  173.     langSanskrit                = 65;                            {  smDevanagari script  }
  174.     langMarathi                    = 66;                            {  smDevanagari script  }
  175.     langBengali                    = 67;                            {  smBengali script  }
  176.     langAssamese                = 68;                            {  smBengali script  }
  177.     langGujarati                = 69;                            {  smGujarati script  }
  178.     langPunjabi                    = 70;                            {  smGurmukhi script  }
  179.     langOriya                    = 71;                            {  smOriya script  }
  180.     langMalayalam                = 72;                            {  smMalayalam script  }
  181.     langKannada                    = 73;                            {  smKannada script  }
  182.     langTamil                    = 74;                            {  smTamil script  }
  183.     langTelugu                    = 75;                            {  smTelugu script  }
  184.     langSinhalese                = 76;                            {  smSinhalese script  }
  185.  
  186.     langBurmese                    = 77;                            {  smBurmese script  }
  187.     langKhmer                    = 78;                            {  smKhmer script  }
  188.     langLao                        = 79;                            {  smLaotian script  }
  189.     langVietnamese                = 80;                            {  smVietnamese script  }
  190.     langIndonesian                = 81;                            {  smRoman script  }
  191.     langTagalog                    = 82;                            {  smRoman script  }
  192.     langMalayRoman                = 83;                            {  Malay in smRoman script  }
  193.     langMalayArabic                = 84;                            {  Malay in smArabic script  }
  194.     langAmharic                    = 85;                            {  smEthiopic script  }
  195.     langTigrinya                = 86;                            {  smEthiopic script  }
  196.     langGalla                    = 87;                            {  smEthiopic script  }
  197.     langOromo                    = 87;                            {  Synonym for langGalla  }
  198.     langSomali                    = 88;                            {  smRoman script  }
  199.     langSwahili                    = 89;                            {  smRoman script  }
  200.     langRuanda                    = 90;                            {  smRoman script  }
  201.     langRundi                    = 91;                            {  smRoman script  }
  202.     langChewa                    = 92;                            {  smRoman script  }
  203.     langMalagasy                = 93;                            {  smRoman script  }
  204.     langEsperanto                = 94;                            {  extended Roman script  }
  205.     langWelsh                    = 128;                            {  smRoman script  }
  206.  
  207.     langBasque                    = 129;                            {  smRoman script  }
  208.     langCatalan                    = 130;                            {  smRoman script  }
  209.     langLatin                    = 131;                            {  smRoman script  }
  210.     langQuechua                    = 132;                            {  smRoman script  }
  211.     langGuarani                    = 133;                            {  smRoman script  }
  212.     langAymara                    = 134;                            {  smRoman script  }
  213.     langTatar                    = 135;                            {  smCyrillic script  }
  214.     langUighur                    = 136;                            {  smArabic script  }
  215.     langDzongkha                = 137;                            {  (lang of Bhutan) smTibetan script  }
  216.     langJavaneseRom                = 138;                            {  Javanese in smRoman script  }
  217.     langSundaneseRom            = 139;                            {  Sundanese in smRoman script  }
  218.     langGalician                = 140;                            {  smRoman script  }
  219.                                                                 {  Obsolete names, kept for backward compatibility  }
  220.     langPortugese                = 8;                            {  old misspelled version, kept for compatibility  }
  221.     langMalta                    = 16;                            {  old misspelled version, kept for compatibility  }
  222.     langYugoslavian                = 18;                            {  (use langCroatian, langSerbian, etc.)  }
  223.     langChinese                    = 19;                            {  (use langTradChinese or langSimpChinese)  }
  224.     langLapponian                = 29;                            {  Synonym for langSaamisk, not correct name  }
  225.     langLappish                    = 29;                            {  Synonym for langSaamisk  }
  226.  
  227.                                                                 {  Regional version codes  }
  228.     verUS                        = 0;
  229.     verFrance                    = 1;
  230.     verBritain                    = 2;
  231.     verGermany                    = 3;
  232.     verItaly                    = 4;
  233.     verNetherlands                = 5;
  234.     verFrBelgiumLux                = 6;                            {  French for Belgium & Luxembourg  }
  235.     verSweden                    = 7;
  236.     verSpain                    = 8;
  237.     verDenmark                    = 9;
  238.     verPortugal                    = 10;
  239.     verFrCanada                    = 11;
  240.     verNorway                    = 12;
  241.  
  242.     verIsrael                    = 13;
  243.     verJapan                    = 14;
  244.     verAustralia                = 15;
  245.     verArabic                    = 16;                            {  synonym for verArabia  }
  246.     verFinland                    = 17;
  247.     verFrSwiss                    = 18;                            {  French Swiss  }
  248.     verGrSwiss                    = 19;                            {  German Swiss  }
  249.     verGreece                    = 20;
  250.     verIceland                    = 21;
  251.     verMalta                    = 22;
  252.     verCyprus                    = 23;
  253.     verTurkey                    = 24;
  254.     verYugoCroatian                = 25;                            {  Croatian system for Yugoslavia  }
  255.     verNetherlandsComma            = 26;
  256.     verBelgiumLuxPoint            = 27;
  257.     verCanadaComma                = 28;
  258.     verCanadaPoint                = 29;
  259.     vervariantPortugal            = 30;
  260.     vervariantNorway            = 31;
  261.     vervariantDenmark            = 32;
  262.     verIndiaHindi                = 33;                            {  Hindi system for India  }
  263.     verPakistan                    = 34;
  264.     verTurkishModified            = 35;
  265.     verItalianSwiss                = 36;
  266.     verRomania                    = 39;
  267.     verGreekAncient                = 40;
  268.     verLithuania                = 41;
  269.     verPoland                    = 42;
  270.     verHungary                    = 43;
  271.     verEstonia                    = 44;
  272.     verLatvia                    = 45;
  273.  
  274.     verLapland                    = 46;
  275.     verFaeroeIsl                = 47;
  276.     verIran                        = 48;
  277.     verRussia                    = 49;
  278.     verIreland                    = 50;                            {  English-language version for Ireland  }
  279.     verKorea                    = 51;
  280.     verChina                    = 52;
  281.     verTaiwan                    = 53;
  282.     verThailand                    = 54;
  283.     verCzech                    = 56;
  284.     verSlovak                    = 57;
  285.     verGenericFE                = 58;
  286.     verMagyar                    = 59;
  287.     verBengali                    = 60;
  288.     verByeloRussian                = 61;
  289.     verUkrania                    = 62;
  290.     verUkraine                    = 62;
  291.     verAlternateGr                = 64;
  292.     verCroatia                    = 68;
  293.     verBrazil                    = 71;
  294.     verBulgaria                    = 72;
  295.     verCatalonia                = 73;
  296.  
  297.     minCountry                    = 0;
  298.     maxCountry                    = 73;                            {  changed from verCroatia when additional enums added  }
  299.  
  300. {  Obsolete region code names, kept for backward compatibility  }
  301.     verBelgiumLux                = 6;                            {  (use verFrBelgiumLux instead, less ambiguous)  }
  302.     verArabia                    = 16;
  303.     verYugoslavia                = 25;                            {  (use verYugoCroatian instead, less ambiguous)  }
  304.     verIndia                    = 33;                            {  (use verIndiaHindi instead, less ambiguous)  }
  305.                                                                 {  Calendar Codes  }
  306.     calGregorian                = 0;
  307.     calArabicCivil                = 1;
  308.     calArabicLunar                = 2;
  309.     calJapanese                    = 3;
  310.     calJewish                    = 4;
  311.     calCoptic                    = 5;
  312.     calPersian                    = 6;                            {  Integer Format Codes  }
  313.     intWestern                    = 0;
  314.     intArabic                    = 1;
  315.     intRoman                    = 2;
  316.     intJapanese                    = 3;
  317.     intEuropean                    = 4;
  318.     intOutputMask                = $8000;                        {  CharByte byte types  }
  319.     smSingleByte                = 0;
  320.     smFirstByte                    = -1;
  321.     smLastByte                    = 1;
  322.     smMiddleByte                = 2;                            {  CharType field masks  }
  323.     smcTypeMask                    = $000F;
  324.     smcReserved                    = $00F0;
  325.  
  326.     smcClassMask                = $0F00;
  327.     smcOrientationMask            = $1000;                        { two-byte script glyph orientation }
  328.     smcRightMask                = $2000;
  329.     smcUpperMask                = $4000;
  330.     smcDoubleMask                = $8000;                        {  Basic CharType character types  }
  331.     smCharPunct                    = $0000;
  332.     smCharAscii                    = $0001;
  333.     smCharEuro                    = $0007;
  334.     smCharExtAscii                = $0007;                        {  More correct synonym for smCharEuro  }
  335.                                                                 {  Additional CharType character types for script systems  }
  336.     smCharKatakana                = $0002;                        { Japanese Katakana }
  337.     smCharHiragana                = $0003;                        { Japanese Hiragana }
  338.     smCharIdeographic            = $0004;                        { Hanzi, Kanji, Hanja }
  339.     smCharTwoByteGreek            = $0005;                        { 2-byte Greek in Far East systems }
  340.     smCharTwoByteRussian        = $0006;                        { 2-byte Cyrillic in Far East systems }
  341.     smCharBidirect                = $0008;                        { Arabic/Hebrew }
  342.     smCharContextualLR            = $0009;                        { Contextual left-right: Thai, Indic scripts }
  343.     smCharNonContextualLR        = $000A;                        { Non-contextual left-right: Cyrillic, Greek }
  344.     smCharHangul                = $000C;                        { Korean Hangul }
  345.     smCharJamo                    = $000D;                        { Korean Jamo }
  346.     smCharBopomofo                = $000E;                        { Chinese Bopomofo }
  347.     smCharGanaKana                = $000F;                        { Shared for Japanese Hiragana & Katakana }
  348.                                                                 {  old names for some of above, for backward compatibility  }
  349.     smCharFISKana                = $0002;                        { Katakana }
  350.     smCharFISGana                = $0003;                        { Hiragana }
  351.     smCharFISIdeo                = $0004;                        { Hanzi, Kanji, Hanja }
  352.  
  353.     smCharFISGreek                = $0005;                        { 2-byte Greek in Far East systems }
  354.     smCharFISRussian            = $0006;                        { 2-byte Cyrillic in Far East systems }
  355.                                                                 {  CharType classes for punctuation (smCharPunct)  }
  356.     smPunctNormal                = $0000;
  357.     smPunctNumber                = $0100;
  358.     smPunctSymbol                = $0200;
  359.     smPunctBlank                = $0300;                        {  Additional CharType classes for punctuation in two-byte systems  }
  360.     smPunctRepeat                = $0400;                        {  repeat marker  }
  361.     smPunctGraphic                = $0500;                        {  line graphics  }
  362.                                                                 {  CharType Katakana and Hiragana classes for two-byte systems  }
  363.     smKanaSmall                    = $0100;                        { small kana character }
  364.     smKanaHardOK                = $0200;                        { can have dakuten }
  365.     smKanaSoftOK                = $0300;                        { can have dakuten or han-dakuten }
  366.                                                                 {  CharType Ideographic classes for two-byte systems  }
  367.     smIdeographicLevel1            = $0000;                        { level 1 char }
  368.     smIdeographicLevel2            = $0100;                        { level 2 char }
  369.     smIdeographicUser            = $0200;                        { user char }
  370.                                                                 {  old names for above, for backward compatibility  }
  371.     smFISClassLvl1                = $0000;                        { level 1 char }
  372.     smFISClassLvl2                = $0100;                        { level 2 char }
  373.     smFISClassUser                = $0200;                        { user char }
  374.                                                                 {  CharType Jamo classes for Korean systems  }
  375.     smJamoJaeum                    = $0000;                        { simple consonant char }
  376.     smJamoBogJaeum                = $0100;                        { complex consonant char }
  377.     smJamoMoeum                    = $0200;                        { simple vowel char }
  378.  
  379.     smJamoBogMoeum                = $0300;                        { complex vowel char }
  380.                                                                 {  CharType glyph orientation for two-byte systems  }
  381.     smCharHorizontal            = $0000;                        {  horizontal character form, or for both  }
  382.     smCharVertical                = $1000;                        {  vertical character form  }
  383.                                                                 {  CharType directions  }
  384.     smCharLeft                    = $0000;
  385.     smCharRight                    = $2000;                        {  CharType case modifers  }
  386.     smCharLower                    = $0000;
  387.     smCharUpper                    = $4000;                        {  CharType character size modifiers (1 or multiple bytes).  }
  388.     smChar1byte                    = $0000;
  389.     smChar2byte                    = $8000;                        {  TransliterateText target types for Roman  }
  390.     smTransAscii                = 0;                            { convert to ASCII }
  391.     smTransNative                = 1;                            { convert to font script }
  392.     smTransCase                    = $FE;                            { convert case for all text }
  393.     smTransSystem                = $FF;                            { convert to system script }
  394.                                                                 {  TransliterateText target types for two-byte scripts  }
  395.     smTransAscii1                = 2;                            { 1-byte Roman }
  396.     smTransAscii2                = 3;                            { 2-byte Roman }
  397.     smTransKana1                = 4;                            { 1-byte Japanese Katakana }
  398.     smTransKana2                = 5;                            { 2-byte Japanese Katakana }
  399.  
  400.     smTransGana2                = 7;                            { 2-byte Japanese Hiragana (no 1-byte Hiragana) }
  401.     smTransHangul2                = 8;                            { 2-byte Korean Hangul }
  402.     smTransJamo2                = 9;                            { 2-byte Korean Jamo }
  403.     smTransBopomofo2            = 10;                            { 2-byte Chinese Bopomofo }
  404.                                                                 {  TransliterateText target modifiers  }
  405.     smTransLower                = $4000;                        { target becomes lowercase }
  406.     smTransUpper                = $8000;                        { target becomes uppercase }
  407.                                                                 {  TransliterateText resource format numbers  }
  408.     smTransRuleBaseFormat        = 1;                            { Rule based trsl resource format  }
  409.     smTransHangulFormat            = 2;                            { Table based Hangul trsl resource format }
  410.                                                                 {  TransliterateText property flags  }
  411.     smTransPreDoubleByting        = 1;                            { Convert all text to double byte before transliteration }
  412.     smTransPreLowerCasing        = 2;                            { Convert all text to lower case before transliteration }
  413.                                                                 {  TransliterateText source mask - general  }
  414.     smMaskAll                    = $FFFFFFFF;                    { Convert all text }
  415.                                                                 {  TransliterateText source masks  }
  416.     smMaskAscii                    = $00000001;                    { 2^smTransAscii }
  417.     smMaskNative                = $00000002;                    { 2^smTransNative }
  418.                                                                 {  TransliterateText source masks for two-byte scripts  }
  419.     smMaskAscii1                = $00000004;                    { 2^smTransAscii1 }
  420.     smMaskAscii2                = $00000008;                    { 2^smTransAscii2 }
  421.     smMaskKana1                    = $00000010;                    { 2^smTransKana1 }
  422.     smMaskKana2                    = $00000020;                    { 2^smTransKana2 }
  423.     smMaskGana2                    = $00000080;                    { 2^smTransGana2 }
  424.     smMaskHangul2                = $00000100;                    { 2^smTransHangul2 }
  425.     smMaskJamo2                    = $00000200;                    { 2^smTransJamo2 }
  426.     smMaskBopomofo2                = $00000400;                    { 2^smTransBopomofo2 }
  427.  
  428.                                                                 {  Result values from GetScriptManagerVariable and SetScriptManagerVariable calls.  }
  429.     smNotInstalled                = 0;                            { routine not available in script }
  430.     smBadVerb                    = -1;                            { Bad verb passed to a routine }
  431.     smBadScript                    = -2;                            { Bad script code passed to a routine }
  432.  
  433.                                                                 {  Values for script redraw flag.  }
  434.     smRedrawChar                = 0;                            { Redraw character only }
  435.     smRedrawWord                = 1;                            { Redraw entire word (2-byte systems) }
  436.     smRedrawLine                = -1;                            { Redraw entire line (bidirectional systems) }
  437.                                                                 {  GetScriptManagerVariable and SetScriptManagerVariable verbs  }
  438.     smVersion                    = 0;                            { Script Manager version number }
  439.     smMunged                    = 2;                            { Globals change count }
  440.     smEnabled                    = 4;                            { Count of enabled scripts, incl Roman }
  441.     smBidirect                    = 6;                            { At least one bidirectional script }
  442.     smFontForce                    = 8;                            { Force font flag }
  443.     smIntlForce                    = 10;                            { Force intl flag }
  444.     smForced                    = 12;                            { Script was forced to system script }
  445.     smDefault                    = 14;                            { Script was defaulted to Roman script }
  446.     smPrint                        = 16;                            { Printer action routine }
  447.     smSysScript                    = 18;                            { System script }
  448.     smLastScript                = 20;                            { Last keyboard script }
  449.     smKeyScript                    = 22;                            { Keyboard script }
  450.     smSysRef                    = 24;                            { System folder refNum }
  451.     smKeyCache                    = 26;                            { obsolete }
  452.     smKeySwap                    = 28;                            { Swapping table handle }
  453.     smGenFlags                    = 30;                            { General flags long }
  454.     smOverride                    = 32;                            { Script override flags }
  455.  
  456.     smCharPortion                = 34;                            { Ch vs SpExtra proportion }
  457.                                                                 {  New for System 7.0:  }
  458.     smDoubleByte                = 36;                            { Flag for double-byte script installed }
  459.     smKCHRCache                    = 38;                            { Returns pointer to KCHR cache }
  460.     smRegionCode                = 40;                            { Returns current region code (verXxx) }
  461.     smKeyDisableState            = 42;                            { Returns current keyboard disable state }
  462.                                                                 {  GetScriptVariable and SetScriptVariable verbs.  }
  463.                                                                 {  Note: Verbs private to script systems are negative, while  }
  464.                                                                 {  those general across script systems are non-negative.  }
  465.     smScriptVersion                = 0;                            { Script software version }
  466.     smScriptMunged                = 2;                            { Script entry changed count }
  467.     smScriptEnabled                = 4;                            { Script enabled flag }
  468.     smScriptRight                = 6;                            { Right to left flag }
  469.     smScriptJust                = 8;                            { Justification flag }
  470.     smScriptRedraw                = 10;                            { Word redraw flag }
  471.     smScriptSysFond                = 12;                            { Preferred system font }
  472.     smScriptAppFond                = 14;                            { Preferred Application font }
  473.     smScriptBundle                = 16;                            { Beginning of itlb verbs }
  474.     smScriptNumber                = 16;                            { Script itl0 id }
  475.     smScriptDate                = 18;                            { Script itl1 id }
  476.     smScriptSort                = 20;                            { Script itl2 id }
  477.     smScriptFlags                = 22;                            { flags word }
  478.     smScriptToken                = 24;                            { Script itl4 id }
  479.     smScriptEncoding            = 26;                            { id of optional itl5, if present }
  480.     smScriptLang                = 28;                            { Current language for script }
  481.  
  482.     smScriptNumDate                = 30;                            { Script Number/Date formats. }
  483.     smScriptKeys                = 32;                            { Script KCHR id }
  484.     smScriptIcon                = 34;                            { ID # of SICN or kcs#/kcs4/kcs8 suite }
  485.     smScriptPrint                = 36;                            { Script printer action routine }
  486.     smScriptTrap                = 38;                            { Trap entry pointer }
  487.     smScriptCreator                = 40;                            { Script file creator }
  488.     smScriptFile                = 42;                            { Script file name }
  489.     smScriptName                = 44;                            { Script name }
  490.                                                                 {  There is a hole here for old Kanji private verbs 46-76  }
  491.                                                                 {  New for System 7.0:  }
  492.     smScriptMonoFondSize        = 78;                            { default monospace FOND (hi) & size (lo) }
  493.     smScriptPrefFondSize        = 80;                            { preferred FOND (hi) & size (lo) }
  494.     smScriptSmallFondSize        = 82;                            { default small FOND (hi) & size (lo) }
  495.     smScriptSysFondSize            = 84;                            { default system FOND (hi) & size (lo) }
  496.     smScriptAppFondSize            = 86;                            { default app FOND (hi) & size (lo) }
  497.     smScriptHelpFondSize        = 88;                            { default Help Mgr FOND (hi) & size (lo) }
  498.     smScriptValidStyles            = 90;                            { mask of valid styles for script }
  499.     smScriptAliasStyle            = 92;                            { style (set) to use for aliases }
  500.                                                                 {  Special script code values for International Utilities  }
  501.     iuSystemScript                = -1;                            {  <obsolete>  system script  }
  502.     iuCurrentScript                = -2;                            {  <obsolete>  current script (for font of grafPort)  }
  503.                                                                 {  Negative verbs for KeyScript  }
  504.     smKeyNextScript                = -1;                            {  Switch to next available script  }
  505.     smKeySysScript                = -2;                            {  Switch to the system script  }
  506.     smKeySwapScript                = -3;                            {  Switch to previously-used script  }
  507.                                                                 {  New for System 7.0:  }
  508.     smKeyNextKybd                = -4;                            {  Switch to next keyboard in current keyscript  }
  509.  
  510.     smKeySwapKybd                = -5;                            {  Switch to previously-used keyboard in current keyscript  }
  511.     smKeyDisableKybds            = -6;                            {  Disable keyboards not in system or Roman script  }
  512.     smKeyEnableKybds            = -7;                            {  Re-enable keyboards for all enabled scripts  }
  513.     smKeyToggleInline            = -8;                            {  Toggle inline input for current keyscript  }
  514.     smKeyToggleDirection        = -9;                            {  Toggle default line direction (TESysJust)  }
  515.     smKeyNextInputMethod        = -10;                            {  Switch to next input method in current keyscript  }
  516.     smKeySwapInputMethod        = -11;                            {  Switch to last-used input method in current keyscript  }
  517.     smKeyDisableKybdSwitch        = -12;                            {  Disable switching from the current keyboard  }
  518.     smKeySetDirLeftRight        = -15;                            {  Set default line dir to left-right, align left  }
  519.     smKeySetDirRightLeft        = -16;                            {  Set default line dir to right-left, align right  }
  520.     smKeyRoman                    = -17;                            {  Set keyscript to Roman. Does nothing if Roman-only  }
  521.                                                                 {  system, unlike KeyScript(smRoman) which forces  }
  522.                                                                 {  an update to current default Roman keyboard  }
  523.                                                                 {  Bits in the smScriptFlags word  }
  524.                                                                 {   (bits above 8 are non-static)  }
  525.     smsfIntellCP                = 0;                            { Script has intelligent cut & paste }
  526.     smsfSingByte                = 1;                            { Script has only single bytes }
  527.     smsfNatCase                    = 2;                            { Native chars have upper & lower case }
  528.     smsfContext                    = 3;                            { Script is contextual }
  529.     smsfNoForceFont                = 4;                            { Script will not force characters }
  530.     smsfB0Digits                = 5;                            { Script has alternate digits at B0-B9 }
  531.     smsfAutoInit                = 6;                            { Auto initialize the script }
  532.     smsfUnivExt                    = 7;                            { Script is handled by universal extension }
  533.     smsfSynchUnstyledTE            = 8;                            { Script synchronizes for unstyled TE }
  534.     smsfForms                    = 13;                            { Uses contextual forms for letters }
  535.     smsfLigatures                = 14;                            { Uses contextual ligatures }
  536.     smsfReverse                    = 15;                            { Reverses native text, right-left }
  537.                                                                 {  Bits in the smGenFlags long.  }
  538.                                                                 {  First (high-order) byte is set from itlc flags byte.  }
  539.     smfShowIcon                    = 31;                            { Show icon even if only one script }
  540.     smfDualCaret                = 30;                            { Use dual caret for mixed direction text }
  541.     smfNameTagEnab                = 29;                            { Reserved for internal use }
  542.     smfUseAssocFontInfo            = 28;                            { Use the associated font info for FontMetrics calls <48> }
  543.  
  544.                                                                 {  Roman script constants  }
  545.                                                                 {  The following are here for backward compatibility, but should not be used.  }
  546.                                                                 {  This information should be obtained using GetScript.  }
  547.     romanSysFond                = $3FFF;                        { system font id number }
  548.     romanAppFond                = 3;                            { application font id number }
  549.     romanFlags                    = $0007;                        { roman settings }
  550.                                                                 {  Script Manager font equates.  }
  551.     smFondStart                    = $4000;                        { start from 16K }
  552.     smFondEnd                    = $C000;                        { past end of range at 48K }
  553.                                                                 {  Miscellaneous font equates.  }
  554.     smUprHalfCharSet            = $80;                            { first char code in top half of std char set }
  555.                                                                 {  Character Set Extensions  }
  556.     diaeresisUprY                = $D9;
  557.     fraction                    = $DA;
  558.     intlCurrency                = $DB;
  559.     leftSingGuillemet            = $DC;
  560.     rightSingGuillemet            = $DD;
  561.     fiLigature                    = $DE;
  562.     flLigature                    = $DF;
  563.     dblDagger                    = $E0;
  564.     centeredDot                    = $E1;
  565.     baseSingQuote                = $E2;
  566.     baseDblQuote                = $E3;
  567.     perThousand                    = $E4;
  568.     circumflexUprA                = $E5;
  569.  
  570.     circumflexUprE                = $E6;
  571.     acuteUprA                    = $E7;
  572.     diaeresisUprE                = $E8;
  573.     graveUprE                    = $E9;
  574.     acuteUprI                    = $EA;
  575.     circumflexUprI                = $EB;
  576.     diaeresisUprI                = $EC;
  577.     graveUprI                    = $ED;
  578.     acuteUprO                    = $EE;
  579.     circumflexUprO                = $EF;
  580.     appleLogo                    = $F0;
  581.     graveUprO                    = $F1;
  582.     acuteUprU                    = $F2;
  583.     circumflexUprU                = $F3;
  584.     graveUprU                    = $F4;
  585.     dotlessLwrI                    = $F5;
  586.     circumflex                    = $F6;
  587.     tilde                        = $F7;
  588.     macron                        = $F8;
  589.     breveMark                    = $F9;
  590.  
  591.     overDot                        = $FA;
  592.     ringMark                    = $FB;
  593.     cedilla                        = $FC;
  594.     doubleAcute                    = $FD;
  595.     ogonek                        = $FE;
  596.     hachek                        = $FF;                            {  TokenType values  }
  597.     tokenIntl                    = 4;                            { the itl resource number of the tokenizer }
  598.     tokenEmpty                    = -1;                            { used internally as an empty flag }
  599.  
  600.     tokenUnknown                = 0;                            { chars that do not match a defined token type }
  601.     tokenWhite                    = 1;                            { white space }
  602.     tokenLeftLit                = 2;                            { literal begin }
  603.     tokenRightLit                = 3;                            { literal end }
  604.     tokenAlpha                    = 4;                            { alphabetic }
  605.     tokenNumeric                = 5;                            { numeric }
  606.     tokenNewLine                = 6;                            { new line }
  607.     tokenLeftComment            = 7;                            { open comment }
  608.     tokenRightComment            = 8;                            { close comment }
  609.     tokenLiteral                = 9;                            { literal }
  610.     tokenEscape                    = 10;                            { character escape (e.g. '\' in "\n", "\t") }
  611.     tokenAltNum                    = 11;                            { alternate number (e.g. $B0-B9 in Arabic,Hebrew) }
  612.     tokenRealNum                = 12;                            { real number }
  613.     tokenAltReal                = 13;                            { alternate real number }
  614.     tokenReserve1                = 14;                            { reserved }
  615.     tokenReserve2                = 15;                            { reserved }
  616.     tokenLeftParen                = 16;                            { open parenthesis }
  617.     tokenRightParen                = 17;                            { close parenthesis }
  618.     tokenLeftBracket            = 18;                            { open square bracket }
  619.     tokenRightBracket            = 19;                            { close square bracket }
  620.  
  621.     tokenLeftCurly                = 20;                            { open curly bracket }
  622.     tokenRightCurly                = 21;                            { close curly bracket }
  623.     tokenLeftEnclose            = 22;                            { open guillemet }
  624.     tokenRightEnclose            = 23;                            { close guillemet }
  625.     tokenPlus                    = 24;
  626.     tokenMinus                    = 25;
  627.     tokenAsterisk                = 26;                            { times/multiply }
  628.     tokenDivide                    = 27;
  629.     tokenPlusMinus                = 28;                            { plus or minus symbol }
  630.     tokenSlash                    = 29;
  631.     tokenBackSlash                = 30;
  632.     tokenLess                    = 31;                            { less than symbol }
  633.     tokenGreat                    = 32;                            { greater than symbol }
  634.     tokenEqual                    = 33;
  635.     tokenLessEqual2                = 34;                            { less than or equal, 2 characters (e.g. <=) }
  636.     tokenLessEqual1                = 35;                            { less than or equal, 1 character }
  637.     tokenGreatEqual2            = 36;                            { greater than or equal, 2 characters (e.g. >=) }
  638.     tokenGreatEqual1            = 37;                            { greater than or equal, 1 character }
  639.     token2Equal                    = 38;                            { double equal (e.g. ==) }
  640.     tokenColonEqual                = 39;                            { colon equal }
  641.  
  642.     tokenNotEqual                = 40;                            { not equal, 1 character }
  643.     tokenLessGreat                = 41;                            { less/greater, Pascal not equal (e.g. <>) }
  644.     tokenExclamEqual            = 42;                            { exclamation equal, C not equal (e.g. !=) }
  645.     tokenExclam                    = 43;                            { exclamation point }
  646.     tokenTilde                    = 44;                            { centered tilde }
  647.     tokenComma                    = 45;
  648.     tokenPeriod                    = 46;
  649.     tokenLeft2Quote                = 47;                            { open double quote }
  650.     tokenRight2Quote            = 48;                            { close double quote }
  651.     tokenLeft1Quote                = 49;                            { open single quote }
  652.     tokenRight1Quote            = 50;                            { close single quote }
  653.     token2Quote                    = 51;                            { double quote }
  654.     token1Quote                    = 52;                            { single quote }
  655.     tokenSemicolon                = 53;
  656.     tokenPercent                = 54;
  657.     tokenCaret                    = 55;
  658.     tokenUnderline                = 56;
  659.     tokenAmpersand                = 57;
  660.     tokenAtSign                    = 58;
  661.     tokenBar                    = 59;                            { vertical bar }
  662.  
  663.     tokenQuestion                = 60;
  664.     tokenPi                        = 61;                            { lower-case pi }
  665.     tokenRoot                    = 62;                            { square root symbol }
  666.     tokenSigma                    = 63;                            { capital sigma }
  667.     tokenIntegral                = 64;                            { integral sign }
  668.     tokenMicro                    = 65;
  669.     tokenCapPi                    = 66;                            { capital pi }
  670.     tokenInfinity                = 67;
  671.     tokenColon                    = 68;
  672.     tokenHash                    = 69;                            { e.g. # }
  673.     tokenDollar                    = 70;
  674.     tokenNoBreakSpace            = 71;                            { non-breaking space }
  675.     tokenFraction                = 72;
  676.     tokenIntlCurrency            = 73;
  677.     tokenLeftSingGuillemet        = 74;
  678.     tokenRightSingGuillemet        = 75;
  679.     tokenPerThousand            = 76;
  680.     tokenEllipsis                = 77;
  681.     tokenCenterDot                = 78;
  682.     tokenNil                    = 127;
  683.  
  684.     delimPad                    = -2;                            {  obsolete, misspelled token names kept for backward compatibility  }
  685.     tokenTilda                    = 44;
  686.     tokenCarat                    = 55;
  687.  
  688.                                                                 {  Table selectors for GetItlTable  }
  689.     smWordSelectTable            = 0;                            {  get word select break table from 'itl2'  }
  690.     smWordWrapTable                = 1;                            {  get word wrap break table from 'itl2'  }
  691.     smNumberPartsTable            = 2;                            {  get default number parts table from 'itl4'  }
  692.     smUnTokenTable                = 3;                            {  get unToken table from 'itl4'  }
  693.     smWhiteSpaceList            = 4;                            {  get white space list from 'itl4'  }
  694.     iuWordSelectTable            = 0;                            {  <obsolete>  get word select break table from 'itl2'  }
  695.     iuWordWrapTable                = 1;                            {  <obsolete>  get word wrap break table from 'itl2'  }
  696.     iuNumberPartsTable            = 2;                            {  <obsolete>  get default number parts table from 'itl4'  }
  697.     iuUnTokenTable                = 3;                            {  <obsolete>  get unToken table from 'itl4'  }
  698.     iuWhiteSpaceList            = 4;                            {  <obsolete>  get white space list from 'itl4'  }
  699.  
  700. {  end of stuff moved from Packages.h  }
  701.     tokenOK                        = 0;                            {  TokenResults  }
  702.     tokenOverflow                = 1;                            {  TokenResults  }
  703.     stringOverflow                = 2;                            {  TokenResults  }
  704.     badDelim                    = 3;                            {  TokenResults  }
  705.     badEnding                    = 4;                            {  TokenResults  }
  706.     crash                        = 5;                            {  TokenResults  }
  707.  
  708.  
  709. TYPE
  710.     TokenResults                        = SInt8;
  711.     CharByteTable                        = PACKED ARRAY [0..255] OF CHAR;
  712.     TokenType                            = INTEGER;
  713.     DelimType                            = ARRAY [0..1] OF TokenType;
  714.     CommentType                            = ARRAY [0..3] OF TokenType;
  715.     TokenRecPtr = ^TokenRec;
  716.     TokenRec = RECORD
  717.         theToken:                TokenType;
  718.         position:                Ptr;                                    { pointer into original source }
  719.         length:                    LONGINT;                                { length of text in original source }
  720.         stringPosition:            StringPtr;                                { Pascal/C string copy of identifier }
  721.     END;
  722.  
  723.     TokenBlockPtr = ^TokenBlock;
  724.     TokenBlock = RECORD
  725.         source:                    Ptr;                                    { pointer to stream of characters }
  726.         sourceLength:            LONGINT;                                { length of source stream }
  727.         tokenList:                Ptr;                                    { pointer to array of tokens }
  728.         tokenLength:            LONGINT;                                { maximum length of TokenList }
  729.         tokenCount:                LONGINT;                                { number tokens generated by tokenizer }
  730.         stringList:                Ptr;                                    { pointer to stream of identifiers }
  731.         stringLength:            LONGINT;                                { length of string list }
  732.         stringCount:            LONGINT;                                { number of bytes currently used }
  733.         doString:                BOOLEAN;                                { make strings & put into StringList }
  734.         doAppend:                BOOLEAN;                                { append to TokenList rather than replace }
  735.         doAlphanumeric:            BOOLEAN;                                { identifiers may include numeric }
  736.         doNest:                    BOOLEAN;                                { do comments nest? }
  737.         leftDelims:                ARRAY [0..1] OF TokenType;
  738.         rightDelims:            ARRAY [0..1] OF TokenType;
  739.         leftComment:            ARRAY [0..3] OF TokenType;
  740.         rightComment:            ARRAY [0..3] OF TokenType;
  741.         escapeCode:                TokenType;                                { escape symbol code }
  742.         decimalCode:            TokenType;
  743.         itlResource:            Handle;                                    { handle to itl4 resource of current script }
  744.         reserved:                ARRAY [0..7] OF LONGINT;                { must be zero! }
  745.     END;
  746.  
  747. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  748. FUNCTION GetSysDirection: INTEGER;
  749.     {$IFC NOT GENERATINGCFM}
  750.     INLINE $3EB8, $0BAC;
  751.     {$ENDC}
  752. PROCEDURE SetSysDirection(value: INTEGER);
  753.     {$IFC NOT GENERATINGCFM}
  754.     INLINE $31DF, $0BAC;
  755.     {$ENDC}
  756. FUNCTION FontScript: INTEGER;
  757.     {$IFC NOT GENERATINGCFM}
  758.     INLINE $2F3C, $8200, $0000, $A8B5;
  759.     {$ENDC}
  760. FUNCTION IntlScript: INTEGER;
  761.     {$IFC NOT GENERATINGCFM}
  762.     INLINE $2F3C, $8200, $0002, $A8B5;
  763.     {$ENDC}
  764. PROCEDURE KeyScript(code: INTEGER);
  765.     {$IFC NOT GENERATINGCFM}
  766.     INLINE $2F3C, $8002, $0004, $A8B5;
  767.     {$ENDC}
  768. FUNCTION IsCmdChar({CONST}VAR event: EventRecord; test: INTEGER): BOOLEAN;
  769.     {$IFC NOT GENERATINGCFM}
  770.     INLINE $2F3C, $8206, $FFD0, $A8B5;
  771.     {$ENDC}
  772. FUNCTION FontToScript(fontNumber: INTEGER): INTEGER;
  773.     {$IFC NOT GENERATINGCFM}
  774.     INLINE $2F3C, $8202, $0006, $A8B5;
  775.     {$ENDC}
  776. FUNCTION GetScriptManagerVariable(selector: INTEGER): LONGINT;
  777.     {$IFC NOT GENERATINGCFM}
  778.     INLINE $2F3C, $8402, $0008, $A8B5;
  779.     {$ENDC}
  780. FUNCTION SetScriptManagerVariable(selector: INTEGER; param: LONGINT): OSErr;
  781.     {$IFC NOT GENERATINGCFM}
  782.     INLINE $2F3C, $8206, $000A, $A8B5;
  783.     {$ENDC}
  784. FUNCTION GetScriptVariable(script: INTEGER; selector: INTEGER): LONGINT;
  785.     {$IFC NOT GENERATINGCFM}
  786.     INLINE $2F3C, $8404, $000C, $A8B5;
  787.     {$ENDC}
  788. FUNCTION SetScriptVariable(script: INTEGER; selector: INTEGER; param: LONGINT): OSErr;
  789.     {$IFC NOT GENERATINGCFM}
  790.     INLINE $2F3C, $8208, $000E, $A8B5;
  791.     {$ENDC}
  792. FUNCTION CharacterByteType(textBuf: Ptr; textOffset: INTEGER; script: ScriptCode): INTEGER;
  793.     {$IFC NOT GENERATINGCFM}
  794.     INLINE $2F3C, $C206, $0010, $A8B5;
  795.     {$ENDC}
  796. FUNCTION CharacterType(textBuf: Ptr; textOffset: INTEGER; script: ScriptCode): INTEGER;
  797.     {$IFC NOT GENERATINGCFM}
  798.     INLINE $2F3C, $C206, $0012, $A8B5;
  799.     {$ENDC}
  800. FUNCTION TransliterateText(srcHandle: Handle; dstHandle: Handle; target: INTEGER; srcMask: LONGINT; script: ScriptCode): OSErr;
  801.     {$IFC NOT GENERATINGCFM}
  802.     INLINE $2F3C, $C20E, $0018, $A8B5;
  803.     {$ENDC}
  804. FUNCTION FillParseTable(VAR table: CharByteTable; script: ScriptCode): BOOLEAN;
  805.     {$IFC NOT GENERATINGCFM}
  806.     INLINE $2F3C, $C204, $0022, $A8B5;
  807.     {$ENDC}
  808. FUNCTION GetIntlResource(theID: INTEGER): Handle;
  809.     {$IFC NOT GENERATINGCFM}
  810.     INLINE $3F3C, $0006, $A9ED;
  811.     {$ENDC}
  812. PROCEDURE ClearIntlResourceCache;
  813.     {$IFC NOT GENERATINGCFM}
  814.     INLINE $3F3C, $0018, $A9ED;
  815.     {$ENDC}
  816. PROCEDURE GetIntlResourceTable(script: ScriptCode; tableCode: INTEGER; VAR itlHandle: Handle; VAR offset: LONGINT; VAR length: LONGINT);
  817.     {$IFC NOT GENERATINGCFM}
  818.     INLINE $3F3C, $0024, $A9ED;
  819.     {$ENDC}
  820. FUNCTION GetScriptUtilityAddress(selector: INTEGER; Before: BOOLEAN; script: ScriptCode): UniversalProcPtr;
  821.     {$IFC NOT GENERATINGCFM}
  822.     INLINE $2F3C, $C404, $0038, $A8B5;
  823.     {$ENDC}
  824. PROCEDURE SetScriptUtilityAddress(selector: INTEGER; Before: BOOLEAN; routineAddr: UniversalProcPtr; script: ScriptCode);
  825.     {$IFC NOT GENERATINGCFM}
  826.     INLINE $2F3C, $C008, $003A, $A8B5;
  827.     {$ENDC}
  828. FUNCTION GetScriptQDPatchAddress(trapNum: INTEGER; Before: BOOLEAN; forPrinting: BOOLEAN; script: ScriptCode): UniversalProcPtr;
  829.     {$IFC NOT GENERATINGCFM}
  830.     INLINE $2F3C, $C406, $003C, $A8B5;
  831.     {$ENDC}
  832. PROCEDURE SetScriptQDPatchAddress(trapNum: INTEGER; Before: BOOLEAN; forPrinting: BOOLEAN; routineAddr: UniversalProcPtr; script: ScriptCode);
  833.     {$IFC NOT GENERATINGCFM}
  834.     INLINE $2F3C, $C00A, $003E, $A8B5;
  835.     {$ENDC}
  836. PROCEDURE SetIntlResource(refNum: INTEGER; theID: INTEGER; intlHandle: Handle);
  837.     {$IFC NOT GENERATINGCFM}
  838.     INLINE $3F3C, $0008, $A9ED;
  839.     {$ENDC}
  840. {$ENDC}
  841. {$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
  842. FUNCTION CharByte(textBuf: Ptr; textOffset: INTEGER): INTEGER;
  843.     {$IFC NOT GENERATINGCFM}
  844.     INLINE $2F3C, $8206, $0010, $A8B5;
  845.     {$ENDC}
  846. FUNCTION CharType(textBuf: Ptr; textOffset: INTEGER): INTEGER;
  847.     {$IFC NOT GENERATINGCFM}
  848.     INLINE $2F3C, $8206, $0012, $A8B5;
  849.     {$ENDC}
  850. FUNCTION Transliterate(srcHandle: Handle; dstHandle: Handle; target: INTEGER; srcMask: LONGINT): OSErr;
  851.     {$IFC NOT GENERATINGCFM}
  852.     INLINE $2F3C, $820E, $0018, $A8B5;
  853.     {$ENDC}
  854. FUNCTION ParseTable(VAR table: CharByteTable): BOOLEAN;
  855.     {$IFC NOT GENERATINGCFM}
  856.     INLINE $2F3C, $8204, $0022, $A8B5;
  857.     {$ENDC}
  858. FUNCTION IntlTokenize(tokenParam: TokenBlockPtr): TokenResults;
  859.     {$IFC NOT GENERATINGCFM}
  860.     INLINE $2F3C, $8204, $FFFA, $A8B5;
  861.     {$ENDC}
  862. {$ENDC}
  863. {$IFC OLDROUTINENAMES }
  864. PROCEDURE SetSysJust(newDirection: INTEGER);
  865.     {$IFC NOT GENERATINGCFM}
  866.     INLINE $31DF, $0BAC;
  867.     {$ENDC}
  868. FUNCTION GetSysJust: INTEGER;
  869.     {$IFC NOT GENERATINGCFM}
  870.     INLINE $3EB8, $0BAC;
  871.     {$ENDC}
  872. FUNCTION Font2Script(fontNumber: INTEGER): INTEGER;
  873.     {$IFC NOT GENERATINGCFM}
  874.     INLINE $2F3C, $8202, $0006, $A8B5;
  875.     {$ENDC}
  876. FUNCTION GetEnvirons(selector: INTEGER): LONGINT;
  877.     {$IFC NOT GENERATINGCFM}
  878.     INLINE $2F3C, $8402, $0008, $A8B5;
  879.     {$ENDC}
  880. FUNCTION SetEnvirons(selector: INTEGER; param: LONGINT): OSErr;
  881.     {$IFC NOT GENERATINGCFM}
  882.     INLINE $2F3C, $8206, $000A, $A8B5;
  883.     {$ENDC}
  884. FUNCTION GetScript(script: INTEGER; verb: INTEGER): LONGINT;
  885.     {$IFC NOT GENERATINGCFM}
  886.     INLINE $2F3C, $8404, $000C, $A8B5;
  887.     {$ENDC}
  888. FUNCTION SetScript(script: INTEGER; verb: INTEGER; param: LONGINT): OSErr;
  889.     {$IFC NOT GENERATINGCFM}
  890.     INLINE $2F3C, $8208, $000E, $A8B5;
  891.     {$ENDC}
  892. FUNCTION IUGetIntl(theID: INTEGER): Handle;
  893.     {$IFC NOT GENERATINGCFM}
  894.     INLINE $3F3C, $0006, $A9ED;
  895.     {$ENDC}
  896. PROCEDURE IUSetIntl(refNum: INTEGER; theID: INTEGER; intlHandle: Handle);
  897.     {$IFC NOT GENERATINGCFM}
  898.     INLINE $3F3C, $0008, $A9ED;
  899.     {$ENDC}
  900. PROCEDURE IUClearCache;
  901.     {$IFC NOT GENERATINGCFM}
  902.     INLINE $3F3C, $0018, $A9ED;
  903.     {$ENDC}
  904. PROCEDURE IUGetItlTable(script: ScriptCode; tableCode: INTEGER; VAR itlHandle: Handle; VAR offset: LONGINT; VAR length: LONGINT);
  905.     {$IFC NOT GENERATINGCFM}
  906.     INLINE $3F3C, $0024, $A9ED;
  907.     {$ENDC}
  908. {$ELSEC}
  909. {$ENDC}
  910. {$ALIGN RESET}
  911. {$POP}
  912.  
  913. {$SETC UsingIncludes := ScriptIncludes}
  914.  
  915. {$ENDC} {__SCRIPT__}
  916.  
  917. {$IFC NOT UsingIncludes}
  918.  END.
  919. {$ENDC}
  920.